package com.example.hospital.patient.wx.api.db.dao;

import com.example.hospital.patient.wx.api.db.pojo.UserEntity;
import org.springframework.transaction.annotation.Transactional;

import java.util.HashMap;
import java.util.Map;

public interface UserDao {
    @Transactional
    public int insert(UserEntity entity);

    public UserEntity searchAlreadyRegistered(Map data);

    public void updateUser(Map data);

    public Map getProfile(Integer id);

    public HashMap searchOpenId(int userId);
    public Map loginByTel(String tel);
    public Map getUserInfo(Integer id);
}
